﻿using ARchGL.Platform.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace ARchGL.Platform.Core
{
    /// <summary>
    /// 项目模型 数据实体
    /// </summary>
    [Table("JN_" + nameof(ProjectModels))]
    public class ProjectModels : ModelBase
    {

    }

    public abstract class ModelBase : EntitySoftDeleteBase
    {
        /// <summary>
        /// SSO用户标识
        /// </summary>
        public Guid SSOCreatorUserId { get; set; }
        /// <summary>
        /// 所属项目Id
        /// </summary>
        public Guid ProjectId { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string CreatorUserName { get; set; }
        /// <summary>
        /// 模型名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 模型图片地址
        /// </summary>
        public string ImageUrl { get; set; }
        /// <summary>
        /// 模型地址
        /// </summary>
        public string Path { get; set; }
        /// <summary>
        /// 模型大小
        /// </summary>
        public long Size { get; set; }
        /// <summary>
        /// 模型组
        /// </summary>
        public Guid ModelGroupId { get; set; }
        /// <summary>
        /// 模型解析任务标识
        /// </summary>
        public Guid TaskId { get; set; }
        /// <summary>
        /// 转换状态：0未转换、1转换失败、2转换中、3转换成功
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 模型文件名
        /// </summary>
        [MaxLength(100)]
        public string FileName { get; set; }
        /// <summary>
        /// 模型加密值
        /// </summary>
        [MaxLength(32)]
        public string Hash { get; set; }
        /// <summary>
        /// 模型后缀
        /// </summary>
        [MaxLength(10)]
        public string Type { get; set; }
    }
}
